projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59867cf
)
babl-cache: avoid %'ing by 0
author
Øyvind Kolås
<pippin@gimp.org>
Sun, 20 Nov 2016 12:28:43 +0000
(13:28 +0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Sun, 20 Nov 2016 12:28:43 +0000
(13:28 +0100)
babl/babl-cache.c
patch
|
blob
|
history
diff --git
a/babl/babl-cache.c
b/babl/babl-cache.c
index 4a26db087c15116ef7324fc9064c41e23c721bc1..926d9f1492ccf6b4dd149e0b9c244006d3ed9c70 100644
(file)
--- a/
babl/babl-cache.c
+++ b/
babl/babl-cache.c
@@
-209,7
+209,7
@@
void babl_init_db (void)
if (babl)
{
if ( ((babl->fish.pixels+1 + babl->fish.processings) %
-
(tim % 100
)) == 0)
+
((tim % 100)+1
)) == 0)
{
/* 1% chance of individual cached conversions being dropped -
* making sure mis-measured conversions do not